using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Rapier.Kodachi.Core
{
    public partial class GetTextExtension : Form
    {
        #region Properties
        public string Extension
        {
            get 
            {
                if(textBox1.Text.Contains("."))
                    return textBox1.Text.Substring(textBox1.Text.LastIndexOf('.')); 
                else
                    return "." + textBox1.Text;
            }
        }
        #endregion

        public GetTextExtension()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }
    }
}